package com.example.day04.teachercode;

import java.util.Date;

public class Order {

    private  int id;
    private  int orderNo;
    private  double price;
    private  int status;
    private Date createDate;

    public Order(int id, int orderNo, double price, int status, Date createDate) {
        this.id = id;
        this.orderNo = orderNo;
        this.price = price;
        this.status = status;
        this.createDate = createDate;
    }

    public Order() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(int orderNo) {
        this.orderNo = orderNo;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Order{");
        sb.append("id=").append(id);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", price=").append(price);
        sb.append(", status=").append(status);
        sb.append(", createDate=").append(createDate);
        sb.append('}');
        return sb.toString();
    }
}
